home *** CD-ROM | disk | FTP | other *** search
- Path: howland.reston.ans.net!psinntp!psinntp!psinntp!psinntp!usenet
- From: grantp@usa.pipeline.com(Pete Grant)
- Newsgroups: comp.lang.c++
- Subject: Re: Borland 4.5 application won't work on its own
- Date: 20 Mar 1996 00:15:46 GMT
- Organization: Kalevi, Inc.
- Message-ID: <4inini$1s7@news1.h1.usa.pipeline.com>
- References: <4ikdco$rck@web.cae.ca>
- NNTP-Posting-Host: 38.8.53.2
- X-PipeUser: grantp
- X-PipeHub: usa.pipeline.com
- X-PipeGCOS: (Pete Grant)
- X-Newsreader: Pipeline v3.5.0
-
- On Mar 18, 1996 19:26:16 in article <Re: Borland 4.5 application won't work
- on its own>, 'fraserh@cae.ca (Fraser Hutchinson)' wrote:
-
-
- >In article <4i3fhh$bor@dole.uninett.no>, Kristoffer.Moe@nifu.no says...
- >>
- >>I have recently developed an application with Borland C++
- >>4.5 and OWL. It is based on a TDecoratedFrame parent with a TDialog as a
-
- >>child. The program works nicely (acceptably that is) when compiled and
- run
- >>'within' Borland IDE. However, when it is started on its own, whithout
- the
- >>Borland IDE loaded in the machine at all, it displays the
- TDecoratedFrame,
- >>and generates a General Protecton Fault. With Winspector running in the
- >>background it works again. The application is based on AppExpert.
- >
- >I have seen this a lot with IDE's: my guess here is that you have a Rogue
-
- >pointer that is corrupting a memory address that doesn't bother the IDE
- but
- >crashes Windows. NULL pointer assignment errors have caused this. I
- would
- >suggest running the app through a memory leak detector like Purify or
- Bounds
- >Checker.
- >
- >Fraser
- >
- >
- A snippet from the FAQ:
-
- ========================================================================
-
- Q147: Why does my BC++ Windows app crash when I'm not running the BC45 IDE?
-
-
- If you're using BC++ for a Windows app, and it works ok as long as you
- have the BC45 IDE running, but when the BC45 IDE is shut down you get an
- exception during the creation of a window, then add the following line of
- code to the InitMainWindow() method of your application
- ("YourApp::InitMainWindow()"):
-
- EnableBWCC(TRUE);
-
- ========================================================================
-
-
- --
- Pete Grant
- Kalevi, Inc.
- Software Engineering & development
-